/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-08-11 17:22:14
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-09-19 10:43:55
 * @FilePath: \project\pyy\src\http\modules\intelligenceInquiry.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from '../../utils/axios'
import {
    INTELLIGENCEINQUIRY_LIST,
    INTELLIGENCEINQUIRY_ADD,
    INTELLIGENCEINQUIRY_DETAILS,
    CORPORATION,
    COORPEORATION
}
from '../apiUrl'
export default {
    // 已发查新
    getList(params) {
        return axios({
            url: INTELLIGENCEINQUIRY_LIST + '/' + params.openid,
            method: 'post',
            data: {
                page: params.page,
                size: params.size,
                query: params.query

            }
        })
    },
    // 查新申请
    addIntelligence(data) {
        return axios({
            url: INTELLIGENCEINQUIRY_ADD + '/' + localStorage.userId,
            // url: INTELLIGENCEINQUIRY_ADD + '/' + 221122,
            method: 'post',
            data: data
        })
    },
    // 查新详情
    getIntelligenceById(params) {
        return axios({
            // url: INTELLIGENCEINQUIRY_DETAILS + '/' + params.id,
            url: '/webjars/myzfile/getOneData/' + params.id,
            method: 'get',
        })
    },
    // 获取法人机构列表
    getCorporation(params) {
        return axios({
            url: CORPORATION,
            method: 'get',
        })
    },
    // 获取合同编号
    getCCoorperation(data) {
        return axios({
            url: COORPEORATION,
            method: 'post',
            data
        })
    }
}